import request from '@/utils/request'

export function courseChapter(data) {
  return request({
    url: '/ops/courseChapter/add',
    method: 'post',
    data
  })
}

export function getCourseChapterList(tenantId, courseId) {
  return request({
    url: '/ops/courseChapter/list',
    method: 'get',
    params: {tenantId: tenantId, courseId: courseId}
  })
}

export function getVideoInfo(videoId) {
  return request({
    url: '/ss/sys/course/getVideoInfo',
    method: 'get',
    params: { videoId: videoId}
  })
}
